package com.qys.livesMall.shop.enums;

import com.qys.livesMall.common.message.QysLang;

/**
 * Created by IntelliJ IDEA.
 * User: dp
 * Date: 2023/05/16
 * Time: 14:26
 * DESCRIPTION: 异常枚举类
 */
public enum ShopMessageEnum implements QysLang {
    SHOP_NOT_EXIST(20000,"shop.not.exist"),
    SHOP_IS_EXIST(20001,"shop.is.exist"),
    STATE_HAS_CHANGED(20002,"the.state.has.changed"),
    SHOP_BASE_LEVEL_ERROR(20003,"shop.base.level.error"),
    SHOP_LEVEL_IS_EXIST(20004,"shop.level.is.exist"),
    CANNOT_HAVE_TWO_LEVELS(20005,"cannot.have.two.levels"),
    SHOP_BALANCE_NOT_EXIST(20006,"shop.balance.not.exist"),
    SHOP_BALANCE_IN_FREEZE_MIN(20007,"shop.balance.in.freeze.min"),

    SHOP_BALANCE_INSUFFICIENT(20008,"shop.balance.insufficient"),

    SHOP_BALANCE_ACCOUNT_EXCEPTION(20009,"shop.balance.account.exception"),
    SHOP_CONTRACT_STATUS_EXCEPTION(20010,"shop.contract.status.exception"),
    SHOP_PASSWORD_ERROR(20011,"shop.password.error"),
    SHOP_AMOUNT_ERROR(20012,"shop.amount.error"),
    SHOP_PAY_METHOD_ERROR(20013,"shop.pay.method.error"),
    SHOP_PAY_ACCOUNT_ERROR(20014,"shop.pay.account.error"),
    SHOP_NOT_FIND_ORDER(20015,"shop.not.find.order"),
    SHOP_BALANCE_FREEZE_AMOUNT_EXCEPTION(20016,"shop.balance.freeze.amount.exception"),

    SHOP_ORDER_STATUS_EXCEPTION(20017,"shop.order.status.exception"),
    SHOP_EXIST_UP_LEVEL(20018,"shop.exist.up.level"),
    SHOP_LEVEL_USE(20019,"shop.level.use"),
    SHOP_PASSWORD_IS_NULL(20020,"shop.password.is.null"),
    SHOP_PASSWORD_IS_ERROR(20021,"shop.password.is.error"),
    DATA_PACKAGE_EXIST(20022,"data.package.exist"),
    DATA_PACKAGE_NOT_EXIST(20023,"data.package.not.exist"),

    SHOP_INCOME_TOTAL_GE_ONE(20024,"shop.income.total.ge.one"),
    SHOP_GOODS_OFF(20025,"shop.goods.off"),
    SHOP_WL_EXIST(20026,"shop.wl.exist"),

    NOT_CHECK_SUPERIOR(20027,"user.notfind.not.check.superior"),
    SHOP_ADVANCE_PAYMENT_DISCOUNT(20028,"shop.advance.payment.discount"),

    NOT_LESS_MIN_PURCHASE_NUM(20029,"not.less.min.purchase.num"),
    NOT_LESS_MIN_PURCHASE_AMOUNT(20030,"not.less.min.purchase.amount"),
    NOT_MORE_MAX_PURCHASE_AMOUNT(20031,"not.more.max.purchase.amount"),
    PAY_EARNEST_MONEY_END(20032,"pay.earnest.money.end"),
    SHOP_PURCHASE_AMOUNT_INSUFFICIENT(20008,"shop.purchase.amount.insufficient"),
    SHOP_ORDER_NO_PAYMENT_FOR_GOODS(20033,"shop.order.no.payment.for.goods"),

    POINT_IS_EXIST(20034,"point.is.exist"),
    POINT_IS_NOT_EXIST(20035,"point.is.not.exist"),
    STATE_HAS_CHANGED_STATE(20036,"the.has.changed.state"),
    ;


    private final String PROJECT="shop";

    /**
     * 错误码
     */
    private int code;

    /**
     * 错误描述
     */
    private String msgKey;

    ShopMessageEnum(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    public int getCode() {
        return code;
    }

    public String getMsgKey() {
        return msgKey;
    }

    @Override
    public String PROJECT() {
        return PROJECT;
    }

}
